package com.meta.common;

public class ConstDef {
	
	
	//counter type
	public static final String COUNTER_TYPE = "001";
	public static final String  COUNTER_TYPE_FIRST= "1";
	public static final String COUNTER_TYPE_TABLE_ID = "2";		
	public static final String COUNTER_TYPE_ND_CODE = "3";
	public static final String COUNTER_TYPE_FD_CODE = "4";
	public static final String COUNTER_TYPE_PARTY_CODE = "5";
	public static final String COUNTER_TYPE_DICTIONARY_CODE = "6";
	public static final String COUNTER_TYPE_RD = "8";
	public static final String COUNTER_TYPE_RULE_CODE = "9";
	public static final String COUNTER_TYPE_USER_TRANSACTION = "10";
	public static final String COUNTER_TYPE_NEGATIVE_ID = "11";


	
	//dataType Definition
	public static final String DATA_TYPE="002";
	public static final  String DATA_TYPE_STRING="01";
	public static final String DATA_TYPE_INT = "02";
	public static final String DATA_TYPE_LONG = "03";	
	public static final String DATA_TYPE_FLOAT = "04";
	public static final String DATA_TYPE_DATE = "05";
	public static final String DATA_TYPE_DATETIME = "06";
	public static final String DATA_TYPE_BOOLEAN = "07";
	public static final String DATA_TYPE_STRING_LIST = "08";




	//操作标记
	public static final String OPERATION_FLAG = "003";
	public static final String OPERATION_FLAG_NEW ="1";
	public static final String OPERATION_FLAG_UPDATE ="2";
	public static final String OPERATION_FLAG_DELETE ="3";
	public static final String OPERATION_FLAG_UNCHANGED ="4";
	
	
	//逻辑操作符号
	public static final String LOGIC_OPERATION = "004";
	public static final String LOGIC_OPERATION_EQUAL="01";
	public static final String LOGIC_OPERATION_BIG="02";
	public static final String LOGIC_OPERATION_BIG_EQUAL="03";//大于等于
	public static final String LOGIC_OPERATION_LESS="04";
	public static final String LOGIC_OPERATION_LESS_EQUAL="05";
	public static final String LOGIC_OPERATION_LEFT_LIKE="06";
	public static final String LOGIC_OPERATION_RIGHT_LIKE="07";
	public static final String LOGIC_OPERATION_DOUBLE_LIKE="08";

	//NdType定义	
	public static final String ND_DB_MAPPING = "005";

	public static final String ND_DB_MAPPING_ND ="1";
	public static final String ND_DB_MAPPING_FD ="2";
	public static final String ND_DB_MAPPING_DB_MAPPING ="3";
	public static final String ND_DB_MAPPING_PARTY ="4";
	public static final String ND_DB_MAPPING_ACCOUNT ="5";
	public static final String ND_DB_MAPPING_DICTIONARY ="6";
	public static final String ND_DB_MAPPING_DICTIONARY_VALUE ="7";
	
	public static final String ND_DB_MAPPING_RD ="8";
	public static final String ND_DB_MAPPING_RULE ="9";
	//Nd预定代码
	
	public static final String ND_CODE = "006";
	public static final String ND_CODE_ND="001";
	public static final String ND_CODE_FD="002";
	public static final String ND_CODE_TYPE_MAPPING_ND = "003";
	public static final String ND_CODE_PARTY_ND="004";
	public static final String ND_CODE_PARTY_ACCOUNT_ND="005";
	public static final String ND_CODE_MD ="006";
	public static final String ND_CODE_MD_VALUE ="007";
	public static final String ND_CODE_RD="008";
	public static final String ND_CODE_RULE_ND="009";
	public static final String ND_CODE_MENU = "ndMenu";
	public static final String ND_CODE_LAYOUT = "layoutNd";
	public static final String ND_CODE_FD_LAYOUT = "fdLayoutNd";
	public static final String ND_CODE_FD_LAYOUT_EXTENSION = "fdLayoutExtensionNd";
	public static final String ND_CODE_LAYOUT_EXTENSION = "layoutExtensionNd";
	public static final String ND_CODE_FILE = "fileDefNd";
	public static final String ND_CODE_FILE_BATCH = "fileBatchDefNd";
	public static final String ND_CODE_USER = "userNd";

	//日期格式
	public static final String DATE_FORMAT = "008";
	public static final String DATE_FORMAT_DEFAULT ="yyyy-MM-dd";
	public static final String DATETIME_FORMAT_DEFAULT ="yyyy-MM-dd HH:mm:ss";
	
	
	//业务类型
	public static final String TRANSACTION_TYPE ="009";
	public static final String TRANSACTION_TYPE_COMMIT ="01";
	public static final String TRANSACTION_TYPE_INIT = "03";
	public static final String TRANSACTION_TYPE_SAVE = "04";


	//规则执行顺序类型
	public static final String RULE_EXECUTE_ORDER_TYPE="010";
	public static final String RULE_EXECUTE_ORDER_TYPE_PRE="1";
	public static final String RULE_EXECUTE_ORDER_TYPE_POST="2";	
	public static final String RULE_EXECUTE_ORDER_TYPE_BEGIN="3";	
	public static final String RULE_EXECUTE_ORDER_TYPE_END="4";

	//性别
	public static final String GENDER_CODE = "014";
	//证件类型
	public static final String CERT_TYPE="015";
	//控制类型
	public static final String CONTROL_TYPE = "016";
	public static final String CONTROL_TYPE_TEXT = "01";
	public static final String CONTROL_TYPE_LIST = "02";
	public static final String CONTROL_TYPE_DATE_INPUT = "03";
	public static final String CONTROL_TYPE_BUTTON = "04";
	public static final String CONTROL_TYPE_TREE = "05";
	public static final String CONTROL_TYPE_SWITCH = "06";
	public static final String CONTROL_TYPE_FILTER_SELECT = "07";
	public static final String CONTROL_TYPE_AUTO_COMPLETE = "08";
	public static final String CONTROL_TYPE_DATA_SOURCE_SELECT="09";
	public static final String CONTROL_TYPE_FILTER_INPUT = "10";
	public static final String CONTROL_TYPE_DATETIME_INPUT = "11";
	public static final String CONTROL_TYPE_TEXT_AREA = "12";
	public static final String CONTROL_TYPE_TREE_SELECT = "13";


	//界面显示类型
	public static final String 	SHOW_TYPE = "017";
	public static final String SHOW_TYPE_FORM = "01";
	public static final String SHOW_TYPE_GRID = "02";
	public static final String SHOW_TYPE_TREE = "03";


	public static final String FD_NAME = "026";

	public static final String FD_NAME_ND_CODE ="ndCode";
	public static final String FD_NAME_ND_NAME ="ndName";
	public static final String FD_NAME_DB_MAP_CODE ="dbMapCode";
	public static final String FD_NAME_META_ND_CODE ="metaNdCode";
	public static final String FD_NAME_ND_DESCRIPTION ="ndDescription";
	public static final String FD_NAME_META_ND_NAME ="metaNdName";
	public static final String FD_NAME_META_DB_MAP_CODE = "metaDbMapCode";
	public static final String FD_NAME_ID = "id";
	public static final String FD_NAME_PARENT_ID= "parentId";
	public static final String FD_NAME_NV_ID= "nvId";
	public static final String FD_NAME_CODE= "code";
	public static final String FD_NAME_NAME= "name";
	public static final String FD_NAME_DESCRIPTION= "description";
	public static final String FD_NAME_DATA_TYPE= "dataType";
	public static final String FD_NAME_LABEL= "label";
	public static final String FD_NAME_CURSIVE= "cursive";
	public static final String FD_NAME_PAGE_TYPE= "pageType";
	public static final String FD_NAME_SHOW_TYPE= "showType";
	public static final String FD_NAME_SHOW_ORDER= "showOrder";
	public static final String FD_NAME_CONTROL_TYPE= "controlType";
	public static final String FD_NAME_BUTTON_POSITION= "buttonPosition";
	public static final String FD_NAME_FUNCTION_CODE= "functionCode";
	public static final String FD_NAME_COLS= "cols";
	public static final String FD_NAME_ROWS= "rows";
	public static final String FD_NAME_TYPE= "type";
	public static final String FD_NAME_JSON= "json";
	public static final String FD_NAME_MD_CODE= "mdCode";
	public static final String FD_NAME_MV_CODE= "mvCode";
	public static final String FD_NAME_LEAF= "leaf";
	public static final String FD_NAME_MODULE_CODE= "moduleCode";
	public static final String FD_NAME_UPDATE_TIME= "updateTime";
	public static final String FD_NAME_EXPRESSION= "expression";

	public static final String FD_NAME_MIN_COUNT= "minCount";
	public static final String FD_NAME_MAX_COUNT= "maxCount";

	public static final String FD_NAME_NV_TABLE_NAME= "nvTableName";
	public static final String FD_NAME_fV_TABLE_NAME= "fvTableName";
	public static final String FD_NAME_PERSIST_REMAIN= "persistRemainFields";
	public static final String FD_AME_NV_FIELD_NAMES = "nvFieldNames";
	public static final String FD_AME_FV_FIELD_NAMES = "fvFieldNames";

	public static final String FD_NAME_FD_CODE= "fdCode";
	public static final String FD_NAME_FD_NAME= "fdName";
	public static final String FD_NAME_FD_DESCRIPTION= "fdDescription";
	public static final String FD_NAME_SER_NO= "serNo";

	public static final String FD_NAME_META_CLASS_NAME = "metaClassName";
	public static final String FD_NAME_NV_CLASS_NAME = "nvClassName";
	public static final String FD_NAME_SERVICE_CLASS_NAME = "serviceClassName";
	public static final String FD_NAME_CATEGORY = "category";
	public static final String FD_NAME_ND_ALIAS = "ndAlias";
	public static final String FD_NAME_RULE_CODE = "ruleCode";
	public static final String FD_NAME_RULE_NAME = "ruleName";
	public static final String FD_NAME_RULE_DESCRIPTION = "ruleDescription";
	public static final String FD_NAME_RULE_STAGE = "ruleStage";
	public static final String FD_NAME_RULE_TEXT = "ruleText";
	public static final String FD_NAME_STAGE = "stage";

	public static final String FD_NAME_RD_CODE = "rdCode";
	public static final String FD_NAME_RD_NAME = "rdName";
	public static final String FD_NAME_RD_DESCRIPTION = "rdDescription";
	public static final String FD_NAME_ORDER_TYPE = "orderType";
	public static final String FD_NAME_EXECUTE_ORDER = "executeOrder";
	public static final String FD_NAME_TRANSACTION_TYPE = "transactionType";


	public static final String BUTTON_POSITION = "027";
	public static final String BUTTON_POSITION_NORMAL="1";
	public static final String BUTTON_POSITION_TOOLBAR = "2";
	public static final String BUTTON_POSITION_GRID_OPERATION="3";

	public static final String FUNCTION_CODE = "028";
	public static final String FUNCTION_CODE_SAVE = "001";//保存
	public static final String FUNCTION_CODE_COMMIT = "002";//提交
	public static final String FUNCTION_CODE_DELETE = "003";//删除
	public static final String FUNCTION_CODE_ADD = "004";//增加
	public static final String FUNCTION_CODE_FILTER = "005";//查询
	public static final String FUNCTION_CODE_EDIT = "006";//编辑
	public static final String FUNCTION_CODE_CURSIVE_TREE_CHANGE = "007";
	public static final String FUNCTION_CODE_copy= "008"; // 复制
	public static final String FUNCTION_CODE_ADD_NODE = "009";// 增加节点
	public static final String FUNCTION_CODE_DELETE_NODE = "010"; // 删除节点
	public static final String FUNCTION_CODE_ADD_NV = "011"; // 增加实例
	public static final String FUNCTION_CODE_COPY_NV = "012"; // 复制实例
	public static final String FUNCTION_CODE_COMMIT_CHOOSE = "013"; //选择
	public static final String FUNCTION_CODE_DIALOG_FILTER = "014";//
	public static final String FUNCTION_CODE_ADD_NV_CHOOSE_ND = "015"; // 选择Nd创建
	public static final String FUNCTION_CODE_CREATE_DEFAULT_ENTRY_LAYOUT="016"; // 创建默认页面
	public static final String FUNCTION_CODE_CREATE_DEFAULT_CONDITION_LAYOUT= "017"; // 创建默认查询条件页面
	public static final String FUNCTION_CODE_CREATE_DEFAULT_RESULT_LAYOUT= "018"; // 创建默认查询结果页面

	public static final String ENTRY_FUNCTION = "029";
	public static final String FILTER_FUNCTION = "030";


	public static final String MODULE_CODE = "031";
	public static final String MODULE_CODE_ENTRY = "01";
	public static final String MODULE_CODE_FILTER = "02";
	public static final String MODULE_CODE_STEPS = "03";


	public static final String ND_NAME = "003";
	public static final String ND_NAME_ND="nd";
	public static final String ND_NAME_FD="fd";
	public static final String ND_NAME_DICTIONARY="006";
	public static final String ND_NAME_DICTIONARY_VALUE="007";
	public static final String ND_NAME_RD="rd";
	public static final String ND_NAME_RULE_ND="009";
	public static final String ND_NAME_TASK_ND = "010";
	public static final String ND_NAME_TASK_FILTER_ND = "011";

	public static final String ND_NAME_MENU = "ndMenu";
	public static final String ND_NAME_LAYOUT = "layoutNd";
	public static final String ND_NAME_FD_LAYOUT = "fdLayoutNd";
	public static final String ND_NAME_LAYOUT_EXTENSION = "layoutExtensionNd";
	public static final String ND_NAME_FD_LAYOUT_EXTENSION = "fdLayoutExtensionNd";
	public static final String ND_NAME_LAYOUT_RULE = "layoutRule";
	public static final String ND_NAME_FD_LAYOUT_RULE = "fdLayoutRule";

	public static final String LAYOUT_EXTENSION_TYPE = "032";
	public static final String LAYOUT_EXTENSION_TYPE_TREE_DETAIL = "01";// 树节点明细
	public static final String LAYOUT_EXTENSION_TYPE_EXTERNAL_DATA_SOURCE = "02"; // 外部数据源

	public static final String FD_LAYOUT_EXTENSION = "033";
	public static final String FD_LAYOUT_EXTENSION_LINK = "01";
	public static final String FD_LAYOUT_EXTENSION_QUERY_LAYOUT = "02";//页面查询扩展
	public static final String FD_LAYOUT_EXTENSION_ENTRY ="03";// 录入扩展

	public static final String ND_CATEGORY = "034";
	public static final String ND_CATEGORY_MD = "01";//主数据


	public static final String ND_CATEGORY_DEFUALT = "99";//主数据


	public static final String ND_LAYOUT__MAP = "035";//键到layoutCode映射
	public static final String FILTER_EXT_TYPE = "036";//查询扩展
	public static final String PAGE_TYPE = "037";//分页类性
	public static final String PAGE_TYPE_NONE = "1";//不分页
	public static final String PAGE_TYPE_PAGE = "2";//分页

	public static final String ENTRY_ACTION_TYPE = "038";//录入擦做类型
	public static final String ENTRY_ACTION_TYPE_INIT = "01";//初始化
	public static final String ENTRY_ACTION_TYPE_QUERY = "02";//查询获取
	public static final String ENTRY_ACTION_TYPE_COPY = "03";//查询获取
	public static final String ENTRY_ACTION_TYPE_CREATE = "04";//创建
	public static final String ENTRY_ACTION_TYPE_POP_CREATE = "05";//弹框创建

	public static final String FRONT_RULE_STAGE = "039";//前端规则执行阶段
	public static final String FRONT_RULE_CLICK = "01";//按钮点击
	public static final String FRONT_RULE_MOUNTED = "02";//加载
	public static final String FRONT_RULE_LOST_FOCUS = "03";//失去焦点
	public static final String FRONT_RULE_BEFORE_MOVE_NEXT = "04";//移动到下一步

	public static final String COMPOSITE_FUNCTION = "040";//多个组合功能

	public static final String LAYOUT_CODE = "042";//页面布局代码
	public static final String LAYOUT_CODE_LAYOUT = "layoutTreeLayout";//布局录入页面
	public static final String LAYOUT_CODE_ND = "ndTreeLayout";//nd录入页面
	public static final String LAYOUT_CODE_DB_MAP = "dbMappingLayout";//数据映射录入页面

}
